import request from "@/utils/request";

// 查询人员列表
export function listEmployee(query) {
  return request({
    url: "/module/employee/list/list",
    method: "get",
    params: query,
  });
}

// 查询人员详细
export function getEmployee(employeeId) {
  return request({
    url: "/module/employee/list/" + employeeId,
    method: "get",
  });
}

// 新增人员
export function addEmployee(data) {
  return request({
    url: "/module/employee/list",
    method: "post",
    data: data,
  });
}

// 修改人员
export function updateEmployee(data) {
  return request({
    url: "/module/employee/list",
    method: "put",
    data: data,
  });
}

// 删除人员
export function delEmployee(employeeId) {
  return request({
    url: "/module/employee/list/" + employeeId,
    method: "delete",
  });
}

// 批量提交
export function submitEmployee(employeeId) {
  return request({
    url: "/module/employee/list/submit/" + employeeId,
    method: "put",
  });
}

// 批量驳回
export function rejectEmployee(employeeId) {
  return request({
    url: "/module/employee/list/reject/" + employeeId,
    method: "put",
  });
}
